package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/01/03 14:22
 */
@RestController
@RequestMapping("user")
public class UserController {

    //localhost:8080/user/login?username=songge&password=niupi
    @RequestMapping("login")
    public BaseRespVo login(String username, String password) {
        User user = new User(username,password);
        return BaseRespVo.ok(user);
    }
}
